window.util ={
    max_w:500,
    get_w:function(){
        return window.innerWidth|| document.documentElement.clientWidth|| document.body.clientWidth;
    },
    get_h:function(){
        return window.innerHeight|| document.documentElement.clientHeight|| document.body.clientHeight;
    },
    check_mobile:function(){
        return this.get_w() < this.max_w?true:false
    },
    get_script:function(src,func){
        var script = document.createElement('script');
        script.async = "async";
        script.src = src;
        if (func) {
           script.onload = func;
        }
        document.getElementsByTagName("head")[0].appendChild( script );
    }
};
if (!String.prototype.trim) {
  String.prototype.trim = function () {
    return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
  };
}



